package com.xiaohui.controller;

import com.xiaohui.utils.AjaxResult;
import io.minio.MinioClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@CrossOrigin
@RestController
@RequestMapping("/api")
public class MInioCesiController {
    @Autowired
    private MinioClient minioClient;

    @GetMapping("/cesi")
    public AjaxResult uploadFile() throws Exception {
        FileMonitor fileMonitor = new FileMonitor(1000);
        fileMonitor.monitor("E:\\不常用软件合集", new FileListener());
        fileMonitor.start();
        return AjaxResult.success();
    }
}
